import icon from '@/img/tixing.png';
class NotificationUtils {
  notification = (message) => {
    Notification.requestPermission().then((permission) => {
      if (permission == 'granted') {
        let notification = new Notification('今天您有快到期的待办事件', {
          dir: 'auto',
          lang: 'zh-CN',
          tag: '待办事件过期',
          icon: icon,
          body: message,
        });
      }
    });
  };
}
let notification = new NotificationUtils();

export default notification;
